how to use file in programming